package ui.util;

import javafx.geometry.Rectangle2D;
import javafx.stage.Screen;

public interface CommonUtil {

    public static double getSystemHeight(){
        //获取屏幕大小
        Rectangle2D screenRectangle = Screen.getPrimary().getBounds();
       return screenRectangle.getHeight();
    }
    public static double getSystemWidth(){
        //获取屏幕大小
        Rectangle2D screenRectangle = Screen.getPrimary().getBounds();
       return screenRectangle.getWidth();
    }
}
